package com.zpz.framework.zpzoauth.service;

import com.zpz.framework.zpzoauth.common.result.ZpzOauthResultMsg;
import com.zpz.framework.zpzoauth.pojo.qo.SaveRoleMenuQo;
import com.zpz.framework.zpzoauth.pojo.vo.GetRoleMenuVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author zhangpanzhi
 * @description 角色菜单权限关系服务
 * @create 2019-07-18 10:35
 */
public interface ZpzOauthFrameRoleMenuService {
    ZpzOauthResultMsg<List<GetRoleMenuVo>> getRoleMenuListByRoleCode(HttpServletRequest request, String roleCode) throws Exception;

    ZpzOauthResultMsg<Boolean> saveRoleMenu(HttpServletRequest request,String roleCode,String clientId, List<SaveRoleMenuQo> saveRoleMenuQoList);
    ZpzOauthResultMsg<Boolean> saveDepartmentMenu(HttpServletRequest request,String roleCode,String clientId, List<SaveRoleMenuQo> saveRoleMenuQoList);
}
